@extends('default.layouts.adminPublic')
@section('title', '添加菜单导航')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/admin/indexList.css')}}">
    @endsection
    @section('content')
            <!--导航开始-->
    <div class="crumb_warp">
        <i class="fa fa-home"></i> <a href="{{url('admin/menu_nav')}}">首页</a> &raquo; 添加菜单导航
    </div>
    <!--导航结束-->
    <!--结果集标题与导航组件 开始-->
    <div class="con">

        <div class="conMain">
            <div class="result_wrap">
                <div class="search">
                    <span style="margin-right: 20px;"><a href="{{url('admin/menu_nav/create')}}"><i class="fa fa-plus"></i>添加菜单导航</a></span>
                    <span ><a href="{{url('admin/menu_nav')}}"><i class="fa fa-recycle"></i>菜单导航列表</a></span>
                </div>
                <div class="message"><h2>添加菜单导航</h2></div>
            </div>
            <div class="conInfo">
                <div class="manage" style="padding: 0; margin-bottom: 10px;">
                    @if(count($errors)>0)
                        <div class="mark">
                            @if(is_object($errors))
                                @foreach($errors->all() as $error)
                                    <p>{{$error}}</p>
                                @endforeach
                            @else
                                <p>{{$errors}}</p>
                            @endif
                        </div>
                    @endif
                </div>
                <div class="conAddList">
                    <form action="{{url('admin/menu_nav')}}" method="post" name="menuForm" id="menuForm" onsubmit="return checkForm('#menuForm')">
                        {{csrf_field()}}
                        <dl>
                            <dt><i class="require">*</i>菜单导航名称：</dt>
                            <dd><input type="text" class="inpText" value="{{old('nav_name')}}" name="nav_name" id="nav_name"></dd>
                        </dl>
                        <dl>
                            <dt><i class="require">*</i>菜单url地址：</dt>
                            <dd><input type="text" class="inpText" value="{{old('nav_url')}}" name="nav_url" id="nav_url"></dd>
                        </dl>
                        <dl>
                            <dt>菜单导航排序：</dt>
                            <dd><input type="text" style="width: 140px;" class="inpText" value="{{old('nav_sort')}}" name="nav_sort" id="nav_sort"></dd>
                        </dl>
                        <dl>
                            <dt></dt>
                            <dd>
                                <input type="submit" class="sub" value="添加菜单">
                                <input type="button" class="sub but" onclick="history.go(-1)" value="返回">
                            </dd>
                        </dl>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
@endsection


